package cn.mily.datadir.service.imp;

import cn.mily.basics.service.impl.BasicServiceImpl;
import cn.mily.datadir.domain.DataDir;
import cn.mily.datadir.mapper.DataDirMapper;
import cn.mily.datadir.service.IDataDirService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DataDirServiceImpl extends BasicServiceImpl<DataDir> implements IDataDirService {

    @Autowired
    private DataDirMapper mapper;

    @Override
    @Transactional
    public void delete(Long id){
        mapper.deleteDetail(id);
        mapper.delete(id);
    }

}
